(touch stat du)
stat查看文件狀態信息
[root@fengdeyong lianxi]# stat hejin.txt
? File: hejin.txt
? Size: 0???????? ????????Blocks: 0????????? IO Block: 4096?? regular empty file
Device: fd00h/64768d????????Inode: 52727069??? Links: 1
Access: (0644/-rw-r--r--)? Uid: (??? 0/??? root)?? Gid: (??? 0/??? root)
Context: unconfined_u:object_r:default_t:s0
Access: 2021-03-28 10:31:12.989701564 +0800
Modify: 2021-03-28 10:17:21.719671835 +0800
Change: 2021-03-28 10:17:21.719671835 +0800
Birth: -
????????linux里的文件有3個時間
????????1.access time --》atime 訪問時間? --》你查看了文件里的內容?? vim,cat
????????2.change time --》ctime 改動時間 --》改動了文件的屬性,? 例如用戶,組,權限,大小,時間,文件名等
????????3.modify time? --》mtime 修改時間 --》修改文件里的內容
touch命令(新建空文件,或更新文件時間標記)
touch file 新建空文件
du -sh dicr1(查看文件或文件夾的占用情況)
du --> disk usage
-sh --> summarize human-readable
遇到結束的進程,無法訪問怎么辦?
du -sh / 2>/dev/null? 出錯的信息不顯示雜屏幕上,重定向到/dev/null
2> 錯誤信息重定向
?